package com.seaboxdata.service.impl;

import com.seaboxdata.dao.BatchInterfaceDao;
import com.seaboxdata.service.BatchInterfaceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.sql.SQLException;

/**
 * @author
 * @create 2021-05-27 16:58
 **/
@Service
public class BatchInterfaceServiceImpl implements BatchInterfaceService {

    @Autowired
    private BatchInterfaceDao batchInterfaceDao;

    @Override
    public void createTable(String sql) throws SQLException {
        batchInterfaceDao.createTable(sql);
    }

    @Override
    public int batchInsert(String sql) throws SQLException{
        return batchInterfaceDao.batchInsert(sql);
    }
}
